package com.ruoyi.wx.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.mybatis.base.BaseEntity;

/**
 * 小程序应用对象 wx_app
 * 
 * @author ruoyi
 * @date 2022-07-29
 */
public class WxApp extends BaseEntity{
	
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.UUID)
    private String id;

    /** 公众号ID */
    @Excel(name = "公众号ID")
    private String wxId;
    
    /** 小程序ID */
    @Excel(name = "小程序ID")
    private String appId;

    /** 小程序密钥 */
    @Excel(name = "小程序密钥")
    private String appSecret;
    
    /** 商户ID */
    @Excel(name = "商户ID")
    private String mchId;
    
    /** 商户密钥 */
    @Excel(name = "商户密钥")
    private String mchKey;
   
    /** 证书路径*/
    @Excel(name = "证书路径")
    private String keyPath;
    
    /** 交易类型*/
    @Excel(name = "交易类型")
    private String tradeType;

    /** 小程序名称 */
    @Excel(name = "小程序名称")
    private String appName;
    
    /** 消息模板ID */
    @Excel(name = "消息模板ID")
    private String oneTemplateId;
    
    private Date expireTime;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public String getWxId() {
		return wxId;
	}

	public void setWxId(String wxId) {
		this.wxId = wxId;
	}

	public void setAppSecret(String appSecret) 
    {
        this.appSecret = appSecret;
    }

    public String getAppSecret() 
    {
        return appSecret;
    }
    public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}

	public String getMchKey() {
		return mchKey;
	}

	public void setMchKey(String mchKey) {
		this.mchKey = mchKey;
	}

	public String getKeyPath() {
		return keyPath;
	}

	public void setKeyPath(String keyPath) {
		this.keyPath = keyPath;
	}

	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}

	public void setAppName(String appName) 
    {
        this.appName = appName;
    }

    public String getAppName() 
    {
        return appName;
    }

	public String getOneTemplateId() {
		return oneTemplateId;
	}

	public void setOneTemplateId(String oneTemplateId) {
		this.oneTemplateId = oneTemplateId;
	}

	public Date getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}

	public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appId", getAppId())
            .append("appSecret", getAppSecret())
            .append("appName", getAppName())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
